package tr.net.ems.Market;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;

public class SplashActivity extends Activity
{
	private Thread mSplash;
	private Intent mIntent;
	private LinearLayout mLayout;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		
		mLayout = (LinearLayout)findViewById(R.id.llSplash);
		mLayout.setBackgroundResource(R.drawable.splash);

		mSplash = new Thread()
		{

			@Override
			public void run() 
			{
				super.run();
				
				try 
				{
					int bekleme = 0;
					while (bekleme < 2000)
					{
						sleep(100);
						bekleme += 100;
					}
				} 
	            catch (InterruptedException e){} 
	            finally 
	            {
	            	finish();
	            	mIntent = new Intent();
	            	mIntent.setClassName("tr.net.ems.Market","tr.net.ems.Market.ReyonActivity");
	            	startActivity(mIntent);
	            }
			}
		};
		
		mSplash.start();
	}
}
